package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CheckGroupMapper {

    void save(CheckGroup checkGroup);


    Page<CheckGroup> findByCondition(@Param("queryString") String queryString);

    void saveGroupAndItem(@Param("checkGroupId")Integer checkGroupId,@Param("checkitemId")Integer checkitemId);

    CheckGroup findById(@Param("checkGroupId")Integer checkGroupId);

    List<Integer> findItemIdByGroupId(@Param("checkGroupId")Integer checkGroupId);

    void update(CheckGroup checkGroup);

    void deleteGroupAndItemByGroupId(@Param("checkGroupId")Integer checkGroupId);

    long count(@Param("checkGroupId")Integer checkGroupId);

    void delete(@Param("checkGroupId")Integer checkGroupId);

    List<CheckGroup> findAll();

    List<CheckGroup> findGroupBySetMealId(@Param("setMealId")Integer setMealId);

}
